<?php

namespace addons\cloud_market;

use hiduoke\event\BaseEvent;
use hiduoke\services\FormBuilder as Form;

class Listen extends BaseEvent
{
    /**
     * 插件配置
     * @param $row
     * @return array
     */
    public function cloud_market_addon_config($row)
    {
        $rule = array(
            Form::input('down_url', '下载地址', $row['down_url'] ?? ''),
            Form::input('demo_url', '示例地址', $row['demo_url'] ?? 'http://demo.dkyx.cc'),
        );
        return $rule;
    }
}
